<template>
	<view class="main">
		<view class="active_tit">
			<view class="tit">
				历史资本积累
			</view> 
			<!-- <view class="add">
				＋
			</view> -->
		</view>
		<!-- input -->
		<ActiveForm required  ref='operationYears'>
			<view class="active_label">
				经营年限（月）：
			</view>
			<view class="active_input">
				<mInput :thousand='false' type="number" v-model="form.operationYears" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='lastYearInvestment'>
			<view class="active_label">
				初始投资金额（元）：
			</view>
			<view class="active_input">
				<mInput maxlength="16" v-model="form.lastYearInvestment" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='totalAmount'>
			<view class="active_label">
				期间每年平均利润总额（扣除正常家庭开支外）（元）：
			</view>
			<view class="active_input">
				<mInput maxlength="16" type="number" v-model="form.totalAmount" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='outIncome'>
			<view class="active_label">
				近12个月经营期间营业外收入（元）：
			</view>
			<view class="active_input">
				<mInput maxlength="16" type="number" v-model="form.outIncome" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='otherOutInvestment'>
			<view class="active_label">
				近12个月经营期间其他对外投资（元）：
			</view>
			<view class="active_input">
				<mInput maxlength="16" type="number" v-model="form.otherOutInvestment" />
			</view>
		</ActiveForm>
		<!-- <button type="default" @click="getForm">getForm</button> -->
	</view>
</template>

<script>
	import SelectPicker from "../../SelectPicker";
	import RegionPicker from "../../RegionPicker";
	import region from '../areaList.js'
	export default {
		name: 'activeForm',
		data() {
			return {
				region,
				province: "",
				city: "",
				county: "",
				index: 1,
				form: {
					corCerttype: '',
					checked:''
				},
				corCerttypeOptions: [{
						label: "营业执照",
						value: "1",
					},
					{
						label: "个体工商户",
						value: "2",
					},
				],
			}
		},
		components: {
			SelectPicker,
			RegionPicker

		},
		watch:{
			form:{
				handler:function(res){
					//console.warn('manageHistory组件数据变化',res)
					getApp().globalData.stdOffsurLoanBasic = Object.assign(getApp().globalData.stdOffsurLoanBasic, res)
					
				},
				deep:true
			}
		},
		mounted() {
			//获取返显数据
			setTimeout(()=>{
				//数据反显
				this.form = getApp().globalData.stdOffsurLoanBasic
			},getApp().globalData.timeout)
		},
		methods:{
			getForm(){
				
				
			},
			getArea(res){
				
			}
		}
	}
</script>

<style lang="scss">
	
	
</style>


